package com.grad.why.studentsystem.util;

import java.io.File;
import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        File file = new File("E:\\OutPutFaces");
        File[] faces = file.listFiles();
        ArrayList<String> existFaceName = new ArrayList<>();
        for(File f : faces){
            String[] names = f.getName().split("_");
            String name = names[0]+"_"+names[1];
            if(!existFaceName.contains(name)){
                existFaceName.add(name);
            }
        }
        System.out.println(existFaceName.size());
    }
}
